﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SMS.Business.Items
{
    public class ItemTransactionsBusiness:BusinessBase<SMS.DAL.ItemsTransaction,SMS.DAL.Providers.ItemTransactionSearchCriteria>
    {
        private SMS.DAL.Providers.ItemTransactionProvider Provider;

        public ItemTransactionsBusiness()
        {
            Provider = new DAL.Providers.ItemTransactionProvider();
        }
        public override bool Insert(DAL.ItemsTransaction item)
        {
            Provider.Insert(item);
            return true;
        }

        public override bool Update(DAL.ItemsTransaction updatedItem)
        {
            Provider.Update(updatedItem);
            return true;
        }

        public override bool Delete(int id)
        {
            Provider.Delete(id);
            return true;
        }

        public override DAL.ItemsTransaction GetByID(int id)
        {
            return Provider.GetByID(id);
        }

        public override List<DAL.ItemsTransaction> Search(DAL.Providers.ItemTransactionSearchCriteria SearchCriteria)
        {
            return Provider.Search(SearchCriteria);
        }
    }
}
